package com.wm.singleton;

/**
 * @ClassName: Singleton_04
 * @Description: 静态内部类
 * @Author: WM
 * @Date: 2022/12/19 20:00
 */
public class Singleton_04 {
    private Singleton_04() {

    }

    private static class SingletonHolder {
        private static Singleton_04 instance = new Singleton_04();
    }

    public static Singleton_04 getInstance() {
        return SingletonHolder.instance;
    }
}
